/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-1-10 下午12:00 Created by lyyang
 */
package com.jade.bss.business.groupon;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * 团购卷嗅探设置,每个商户或者商场的关键字
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-1-10 下午12:00
 */
@Entity
@Table (name = "BSS_SNIFFER_SETTING")
public class SnifferSetting implements Serializable
{
    @Id
    @GeneratedValue (generator = "SEQ_BSS_SNIFFER_SETTING")
    @SequenceGenerator (name = "SEQ_BSS_SNIFFER_SETTING", sequenceName = "SEQ_BSS_SNIFFER_SETTING")
    private long id;

    //所有者的id,例如:商户id
    @Column (name="owner_id")
    private String ownerId;

    //所有者类型,例如:商户,商场等等的
    @Column (name="owner_type")
    private String ownerType;

    //所在城市
    private String city;

    private String keyword;

    //渠道,例如:大众点评,美团等等
    private String channel;

    @Column (name="last_update")
    private Date lastUpdate;

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getOwnerId()
    {
        return ownerId;
    }

    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public String getOwnerType()
    {
        return ownerType;
    }

    public void setOwnerType(String ownerType)
    {
        this.ownerType = ownerType;
    }

    public String getKeyword()
    {
        return keyword;
    }

    public void setKeyword(String keyword)
    {
        this.keyword = keyword;
    }

    public String getChannel()
    {
        return channel;
    }

    public void setChannel(String channel)
    {
        this.channel = channel;
    }

    public Date getLastUpdate()
    {
        return lastUpdate;
    }

    public void setLastUpdate(Date lastUpdate)
    {
        this.lastUpdate = lastUpdate;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }
}
